﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace _4mvcBlog.Core
{
    /// <summary>
    /// Json数据结果
    /// </summary>
    public class JsonResultData
    {
        /// <summary>
        /// 构造函数，默认IsSuccess为false
        /// </summary>
        public JsonResultData()
        {
            ErrorMsg = new List<string>();
        }
        /// <summary>
        /// 请求处理是否成功
        /// </summary>
        public bool IsError { get; set; }

        /// <summary>
        /// 错误信息列表
        /// </summary>
        public List<string> ErrorMsg { get; private set; }

        /// <summary>
        /// 要返回给客户端的数据
        /// </summary>
        public object Data { get; set; }
    }
}
